package com.test.qpbgboot.show.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalTime;
import java.util.List;

@Data
public class RoomSaveParam {
    @ApiModelProperty(value = "房间id")
    private Long id;
    @ApiModelProperty(value = "店家id", required = true)
    @NotNull(message = "店家id不能为空")
    private Long shopId;
    @ApiModelProperty(value = "房间名称", required = true)
    @NotBlank(message = "房间名称不能为空")
    private String name;
    @ApiModelProperty(value = "房间描述")
    private String description;
    @ApiModelProperty(value = "房间价格")
    @Min(0)
    private BigDecimal price;
    @ApiModelProperty(value = "房间大小")
    private String size;
    @ApiModelProperty(value = "房间图片列表")
    private List<String> imgUrlList;
    @ApiModelProperty(value = "房间视频")
    private String video;
    @ApiModelProperty(value = "房间标签")
    private List<Long> tagIdList;
    @ApiModelProperty(value = "开始营业时间", required = true)
    @NotNull(message = "营业时间不能为空")
//    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "HH:mm:ss")
    private LocalTime openingHoursFrom;
    @ApiModelProperty(value = "结束营业时间", required = true)
    @NotNull(message = "营业时间不能为空")
//    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "HH:mm:ss")
    private LocalTime openingHoursTo;
    @ApiModelProperty(value = "是否展示 0不展示 1展示", required = true)
    @NotBlank(message = "是否展示不能为空")
    private String visible;
}
